<div class="wide form">

    <?php $form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
)); ?>

    <div class="row">
        <?php echo $form->label($model, 'contractid'); ?>
        <?php echo $form->textField($model, 'contractid', array('size' => 41, 'maxlength' => 41)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'custno'); ?>
        <?php echo $form->textField($model, 'custno', array('size' => 7, 'maxlength' => 7)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'locno'); ?>
        <?php echo $form->textField($model, 'locno', array('size' => 5, 'maxlength' => 5)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'contractype'); ?>
        <?php echo $form->textField($model, 'contractype'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'orginalcontractid'); ?>
        <?php echo $form->textField($model, 'orginalcontractid', array('size' => 41, 'maxlength' => 41)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'contractamount'); ?>
        <?php echo $form->textField($model, 'contractamount', array('size' => 10, 'maxlength' => 10)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'contractstartdate'); ?>
        <?php echo $form->textField($model, 'contractstartdate'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'contractenddate'); ?>
        <?php echo $form->textField($model, 'contractenddate'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'salesperson'); ?>
        <?php echo $form->textField($model, 'salesperson'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'jobno'); ?>
        <?php echo $form->textField($model, 'jobno', array('size' => 41, 'maxlength' => 41)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'billtype'); ?>
        <?php echo $form->textField($model, 'billtype'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'lastdatebilled'); ?>
        <?php echo $form->textField($model, 'lastdatebilled'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'lastaccuralpostperiod'); ?>
        <?php echo $form->textField($model, 'lastaccuralpostperiod'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton('Search'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- search-form -->